Add support for AMD MPERF/APERF
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 9 Apr 2010 07:53:53 +0000 (08:53 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 9 Apr 2010 07:53:53 +0000 (08:53 +0100)
commit38c0598f9c61f5be0174657eea6fb0f689c40778
tree3056ac98168ee33d9b73f3a5344ddce0609d4f68
parenta6adb8aa62960abf0722099bc527637bd068099e
Add support for AMD MPERF/APERF

Starting with Family 0x10, model 10 processors, some AMD processors
will have support for the APERF/MPERF MSRs.  This patch adds the
checks necessary to support those MSRs.

It also makes the get_measured_perf function defined inside cpufreq.c
driver independent.  max_freq is taken from the policy definition
instead of being a private argument in struct acpi_cpufreq_data.
The struct member is entirely removed from the function since it
is no longer used.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
xen/arch/x86/acpi/cpufreq/cpufreq.c
xen/arch/x86/acpi/cpufreq/powernow.c
xen/include/acpi/cpufreq/cpufreq.h
xen/include/acpi/cpufreq/processor_perf.h